package com.canyou.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.canyou.system.model.LoginInfo;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author canyou
 * @since 2019-05-14
 */
public interface LoginInfoService extends IService<LoginInfo> {

    /**
     * 分页获取登录信息列表
     *
     * @param page
     * @param loginInfo
     * @return
     */
    IPage<LoginInfo> getLoginInfoPage(IPage<LoginInfo> page, LoginInfo loginInfo);

    /**
     * 保存登录信息
     *
     * @param request
     * @param status
     * @param msg
     * @param username
     */
    void saveLoginInfo(HttpServletRequest request, int status, String msg, String username);
}
